/*
 * hash.c
 *
 *  Created on: 2012-3-9
 *      Author: zhanggx
 */
#include "gx_hash.h"

uint32_t
time33(void *key, gx_uint32_t key_len) {
	gx_uint32_t i;
	gx_uint64_t hash = 0;

	for (i = 0; i < key_len; i++) {
		hash += (hash << 5) + hash + *(int8_t*)key;
	}

	return hash;
}

